\hypertarget{class_thread}{\section{Thread Class Reference}
\label{class_thread}\index{Thread@{Thread}}
}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_thread_ac5757c1225def6c3537c0ea53d0947d3}{{\bfseries Thread} (char $\ast$debug\-Name)}\label{class_thread_ac5757c1225def6c3537c0ea53d0947d3}

\item 
\hypertarget{class_thread_a7631955bc5e11232bb682baa467baf5f}{void {\bfseries Fork} (Void\-Function\-Ptr func, int arg)}\label{class_thread_a7631955bc5e11232bb682baa467baf5f}

\item 
\hypertarget{class_thread_adbc2bfb172d2eff4b46882aade9eeb8a}{void {\bfseries Yield} ()}\label{class_thread_adbc2bfb172d2eff4b46882aade9eeb8a}

\item 
\hypertarget{class_thread_a187a4c1e62087511b69068220840244a}{void {\bfseries Sleep} ()}\label{class_thread_a187a4c1e62087511b69068220840244a}

\item 
\hypertarget{class_thread_a1e43c788c40e9783311c970bcea7239b}{void {\bfseries Finish} ()}\label{class_thread_a1e43c788c40e9783311c970bcea7239b}

\item 
\hypertarget{class_thread_afa6657ff14b9c6866eadd85ea32c9147}{void {\bfseries Check\-Overflow} ()}\label{class_thread_afa6657ff14b9c6866eadd85ea32c9147}

\item 
int \hyperlink{class_thread_abf174c2c79bd83095255737ce3850417}{Id} ()
\item 
void \hyperlink{class_thread_a6403215a0f5789b6b91b6baf6ccf5059}{Set\-Id} (int)
\item 
int \hyperlink{class_thread_a669e0ae7e3a2e355bcff39f2993ec31a}{Children} ()
\item 
bool \hyperlink{class_thread_a614c9af3009c1e8fd75b1afb6b736739}{is\-Child} (int)
\item 
void \hyperlink{class_thread_a4ff9e2024810a0795c409aa33f536a57}{Add\-Child} (\hyperlink{class_thread}{Thread} $\ast$t, int id)
\item 
void \hyperlink{class_thread_aea94203e7d5805e1da6c27285e992756}{Remove\-Child} (int id)
\item 
void \hyperlink{class_thread_a52a2028c463f310ffddd75be2eea83e9}{Set\-Parent} (\hyperlink{class_thread}{Thread} $\ast$num)
\item 
\hyperlink{class_thread}{Thread} $\ast$ \hyperlink{class_thread_aacfd1646f8c33d21d99e17a2ec0aeb49}{Get\-Parent} ()
\item 
\hypertarget{class_thread_a39061ce2692542188f82f909d005b1c3}{void {\bfseries set\-Status} (Thread\-Status st)}\label{class_thread_a39061ce2692542188f82f909d005b1c3}

\item 
\hypertarget{class_thread_aeead3fe994a049ef633aac40a0e13988}{char $\ast$ {\bfseries get\-Name} ()}\label{class_thread_aeead3fe994a049ef633aac40a0e13988}

\item 
\hypertarget{class_thread_ad707af00a9ce1a1d324804e7c73dc4ab}{void {\bfseries Print} ()}\label{class_thread_ad707af00a9ce1a1d324804e7c73dc4ab}

\end{DoxyCompactItemize}


\subsection{Member Function Documentation}
\hypertarget{class_thread_a4ff9e2024810a0795c409aa33f536a57}{\index{Thread@{Thread}!Add\-Child@{Add\-Child}}
\index{Add\-Child@{Add\-Child}!Thread@{Thread}}
\subsubsection[{Add\-Child}]{\setlength{\rightskip}{0pt plus 5cm}void Thread\-::\-Add\-Child (
\begin{DoxyParamCaption}
\item[{{\bf Thread} $\ast$}]{t, }
\item[{int}]{id}
\end{DoxyParamCaption}
)}}\label{class_thread_a4ff9e2024810a0795c409aa33f536a57}
Checks if array is full by comparing num\-Children to c\-\_\-\-Array\-Size, will expand if true then adds new thread to c\-\_\-\-Array Expects pointer to \hyperlink{class_thread}{Thread} being added and process\-Id \hypertarget{class_thread_a669e0ae7e3a2e355bcff39f2993ec31a}{\index{Thread@{Thread}!Children@{Children}}
\index{Children@{Children}!Thread@{Thread}}
\subsubsection[{Children}]{\setlength{\rightskip}{0pt plus 5cm}int Thread\-::\-Children (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_thread_a669e0ae7e3a2e355bcff39f2993ec31a}
Returns number of children (num\-Children) \hypertarget{class_thread_aacfd1646f8c33d21d99e17a2ec0aeb49}{\index{Thread@{Thread}!Get\-Parent@{Get\-Parent}}
\index{Get\-Parent@{Get\-Parent}!Thread@{Thread}}
\subsubsection[{Get\-Parent}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Thread} $\ast$ Thread\-::\-Get\-Parent (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_thread_aacfd1646f8c33d21d99e17a2ec0aeb49}
Returns parent pointer variable \hypertarget{class_thread_abf174c2c79bd83095255737ce3850417}{\index{Thread@{Thread}!Id@{Id}}
\index{Id@{Id}!Thread@{Thread}}
\subsubsection[{Id}]{\setlength{\rightskip}{0pt plus 5cm}int Thread\-::\-Id (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_thread_abf174c2c79bd83095255737ce3850417}
Returns process Id \hypertarget{class_thread_a614c9af3009c1e8fd75b1afb6b736739}{\index{Thread@{Thread}!is\-Child@{is\-Child}}
\index{is\-Child@{is\-Child}!Thread@{Thread}}
\subsubsection[{is\-Child}]{\setlength{\rightskip}{0pt plus 5cm}bool Thread\-::is\-Child (
\begin{DoxyParamCaption}
\item[{int}]{key}
\end{DoxyParamCaption}
)}}\label{class_thread_a614c9af3009c1e8fd75b1afb6b736739}
Returns boolean value incdicating whether or not \hypertarget{class_thread_aea94203e7d5805e1da6c27285e992756}{\index{Thread@{Thread}!Remove\-Child@{Remove\-Child}}
\index{Remove\-Child@{Remove\-Child}!Thread@{Thread}}
\subsubsection[{Remove\-Child}]{\setlength{\rightskip}{0pt plus 5cm}void Thread\-::\-Remove\-Child (
\begin{DoxyParamCaption}
\item[{int}]{id}
\end{DoxyParamCaption}
)}}\label{class_thread_aea94203e7d5805e1da6c27285e992756}
Removes child thread by decrementing num\-Children, setting pointer to N\-U\-L\-L and id to -\/1 expects an integer id \hypertarget{class_thread_a6403215a0f5789b6b91b6baf6ccf5059}{\index{Thread@{Thread}!Set\-Id@{Set\-Id}}
\index{Set\-Id@{Set\-Id}!Thread@{Thread}}
\subsubsection[{Set\-Id}]{\setlength{\rightskip}{0pt plus 5cm}void Thread\-::\-Set\-Id (
\begin{DoxyParamCaption}
\item[{int}]{value}
\end{DoxyParamCaption}
)}}\label{class_thread_a6403215a0f5789b6b91b6baf6ccf5059}
Sets process Id \hypertarget{class_thread_a52a2028c463f310ffddd75be2eea83e9}{\index{Thread@{Thread}!Set\-Parent@{Set\-Parent}}
\index{Set\-Parent@{Set\-Parent}!Thread@{Thread}}
\subsubsection[{Set\-Parent}]{\setlength{\rightskip}{0pt plus 5cm}void Thread\-::\-Set\-Parent (
\begin{DoxyParamCaption}
\item[{{\bf Thread} $\ast$}]{num}
\end{DoxyParamCaption}
)}}\label{class_thread_a52a2028c463f310ffddd75be2eea83e9}
Sets the parent pointer variable, expects a thread 

The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
thread.\-h\item 
thread.\-cc\end{DoxyCompactItemize}
